<template>
<div class="unread-badge">
  <span v-if="unreadCount > 0" class="badge">{{ unreadCount }}</span>
</div>
</template>

<script>
export default {
  name: "UnreadBadge",
  props: {
    unreadCount: {
      type: Number,
      required: true
    }
  }
}
</script>

<style scoped>
.unread-badge {
  display: inline-block;
}

.badge {
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 5px;
  font-size: 10px;
}
</style>